<form class="layui-form" action="{:url()}" method="post" id="editForm">

    {:FormExt::select('货仓名称', 'storehouse_id', '',$storehouseList,'','','lay-verify="required"')}
    {:FormExt::input('货架名称', 'name', '', '请输入货架名称', 'required', 'lay-verify="required"')}

    <div class="pop-bottom-bar">
    	<input type="hidden" class="field-id" name="id">
        <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="formSubmit" hisi-data="{pop: true, refresh: true}">提交保存</button>
        <a href="javascript:parent.layui.layer.closeAll();" class="layui-btn layui-btn-primary ml10">取消</a>
    </div>
</form>

{include file="system@block/layui" /}
    
<script>
    var formData = {:json_encode($formData)};
    layui.use(['form', 'func'], function() {
        var $ = layui.jquery, form = layui.form;
        layui.func.assign(formData);
    });
</script>